package com.wzbc.video.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.wzbc.video.entity.Chapter;
import com.wzbc.video.entity.Lesson;
import com.wzbc.video.res.LessonRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LessonMapper extends BaseMapper<Lesson> {
    IPage<LessonRes> getLessons(IPage<Lesson> page, @Param(Constants.WRAPPER) Wrapper<LessonRes> wrapper);
    LessonRes getLesson( @Param("id") Long id);
}
